package org.example.myleet.p1218;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(4 == solution.longestSubsequence(new int[]{1,2,3,4}, 1));
        Assert.isTrue(1 == solution.longestSubsequence(new int[]{1,3,5,7}, 1));
        Assert.isTrue(4 == solution.longestSubsequence(new int[]{1,5,7,8,5,3,4,2,1}, -2));
    }
}
